<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
	<!ENTITY nbsp "&#160;">
]>
<xsl:stylesheet version="1.0" 
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8"></xsl:output>
 
 <xsl:template match="/">
 <html xmlns ="http://www.w3.org/1999/xhtml">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <title>Kims Filmsammlung</title>
 
 	<style>
 		#table { 
 		border-style:solid;
 		padding:15px;
 		border-color:#0000FF;
		width:100%;
		border-collapse: collapse;
		}
 	</style>
 	
 	<style>
 		#tablecolor {
 		background-color:#000066;
 		text-align:center;
 		color:#FFFFFF; 
 		}
 	</style>
 	
 	<style>
 		#colorAndAlign {
 		text-align:center;
 		background-color:#FFFFFF;
 		}
 	</style>
 </head>
 <body>
 	<table id="table">
 		<tr id="tablecolor">
 			<th>Titel</th>
 			<th>Jahr</th>
 			<th>Laenge</th>
 			<th>sound</th>
 			
 			<th>Regisseur</th>
 			<th>Darsteller</th>
 			
 			<th>Ean</th>
 			<th>Asin</th>
 			<th>CD Type</th>
 			<th>Sprachen</th>
 			
 			<th>FSK</th>

 			
 			
 		</tr>
 		<xsl:for-each select="filmsammlung/film">
 			<tr id="colorAndAlign" onmouseover="style.backgroundColor='
 			#C0C0C0'" onmouseout="style.backgroundColor='#FFFFFF'">
	 			<td><xsl:value-of select="titel" /></td>
	 			<td><xsl:value-of select="jahr" /></td>
	 			<td><xsl:value-of select="laenge" /></td>
	 			
	 			<td>
		 			<xsl:for-each select="sound">
			 				<xsl:value-of select="." />,
		 			</xsl:for-each>
	 			</td>
	 			
	 			<td>		
		 			<xsl:for-each select="person">
		 				<xsl:if test="./@job='regisseur'">
		 					<xsl:value-of select="./name" />,
		 				</xsl:if>
	 				</xsl:for-each>
	 			</td>
	 			<td>
	 				<xsl:for-each select="person">
		 				<xsl:if test="./@job='darsteller'">
		 					<xsl:value-of select="./name" />,
		 				</xsl:if>
	 				</xsl:for-each>
	 			</td>
	 			
	 			<td><xsl:value-of select="ean" /></td>
	 			<td><xsl:value-of select="asin" /></td>
	 			<td><xsl:value-of select="cd/@type" /></td>
	 			
	 			<td>
		 			<xsl:for-each select="sprachen">
			 				<xsl:value-of select="." />,
		 			</xsl:for-each>
	 			</td>

	 			<td><xsl:value-of select="fsk" /></td>

 			</tr>
 		</xsl:for-each>
 	</table>
 </body>
 </html>
</xsl:template>
</xsl:stylesheet>